package Demo.demo3;

public class Main {
    public static void main(String[] args) {
        Animal animal = new Cat();
        animal.eat();
        Cat cat = (Cat) animal;
        cat.play();
        System.out.println("=======================");
        Animal animaldog = new Dog();
        Dog dog = (Dog) animaldog;
        dog.eat();
        dog.play();
    }
}
